<h1>Listing events</h1>

<table>
  <tr>
    <th>Information</th>
    <th>State</th>
  </tr>

<% @events.each do |event| %>
  <tr>
    <td><%=h event.information %></td>
    <td><%=h event.state %></td>
    <td><%= link_to 'Show', event %></td>
    <td><%= link_to 'Edit', edit_event_path(event) %></td>
    <td><%= link_to 'Destroy', event, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New event', new_event_path %>